package com.csun.cmny.provider.model.dto.csunsleep;

import com.csun.cmny.base.dto.BaseQuery;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-03-23 16:34
 * @Description: the class csun sleep data hi query dto
 */
@Data
public class CsunSleepDataHiQueryDto extends BaseQuery {

    /**'
     * 设备Id
     */
    private Long deviceId;

    /**
     * 设备状态 offline-离线 online-在线
     */
    private String status;

    /**
     * 是否在床 1-在床 0-离床
     */
    private Integer inBed;

    /**
     * 平滑参数
     */
    private Integer smoothFactor;

    /**
     * 步长
     */
    private Integer step = 10;

    /**
     * 开始查询时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startQueryTime;

    /**
     * 结束查询时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endQueryTime;

}
